package GUItest;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.JTable;
import javax.swing.border.SoftBevelBorder;
import javax.swing.border.BevelBorder;
import java.awt.Color;
import javax.swing.UIManager;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class PayBillsScreen extends JFrame {

	private JPanel contentPane;
	private JTable table;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					PayBillsScreen frame = new PayBillsScreen();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public PayBillsScreen() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblPayBills = new JLabel("Pay Bills");
		lblPayBills.setFont(new Font("Lucida Grande", Font.PLAIN, 18));
		lblPayBills.setBounds(193, 38, 119, 22);
		contentPane.add(lblPayBills);
		
		JButton btnBack = new JButton("Back");
		btnBack.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseReleased(MouseEvent e) {
				main_Screen main = new main_Screen();
				main.setVisible(true);
			}
		});
		btnBack.setBounds(0, 6, 117, 29);
		contentPane.add(btnBack);
		
		table = new JTable();
		table.setBackground(UIManager.getColor("Tree.selectionInactiveBackground"));
		table.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
		table.setBounds(50, 64, 350, 145);
		contentPane.add(table);
		
		JButton btnPayBills = new JButton("Pay Bills");
		btnPayBills.setBounds(60, 230, 117, 29);
		contentPane.add(btnPayBills);
		
		JLabel lblTotal = new JLabel("Total: ");
		lblTotal.setFont(new Font("Lucida Grande", Font.PLAIN, 15));
		lblTotal.setBounds(251, 235, 61, 16);
		contentPane.add(lblTotal);
		
		JLabel lbltotal = new JLabel("(total)");
		lbltotal.setBounds(306, 235, 61, 16);
		contentPane.add(lbltotal);
	}
}
